package com.recruit.server.common;

public class HeaderLocal {

    private static ThreadLocal<HeaderInfo> HEADERLOCAL = new ThreadLocal<>();

    public static HeaderInfo getHeaderInfo() {
        return HEADERLOCAL.get();
    }

    public static void delHeader() {
        HEADERLOCAL.remove();
    }

    public static void setHeaderInfo(HeaderInfo headerInfo) {
        HEADERLOCAL.set(headerInfo);
    }
}
